import Vue from 'vue'
import VueRouter from 'vue-router'
import HomeView from '../views/homePage.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'home',
    component: HomeView
  },
  {
    path: '/map',
    name: 'map',
    component: () => import('../views/mapPage/index.vue')
  },
  {
    path: '/twoMap',
    name: 'twoMap',
    component: () => import('../views/mapPage/mapTwo.vue')
  },
  {
    path: '/tap',
    name: 'tap',
    component: () => import('../views/tapPage/index.vue')
  },
]

const router = new VueRouter({
  routes
})

export default router
